package com.uouie.demoIot.mqtt;

import com.uouie.common.entity.MqttData;
import com.uouie.common.service.IMqttPublish;
import com.uouie.common.service.IMqttService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

/**
 * @author coder
 * @date 2023-11-08
 * @desc:
 */

@Service
public class FeederServiceImpl implements IMqttService {

    @Autowired
    IMqttPublish publish;

    private static final String version = "V3";

    @Override
    public String getVersion() {
        return version;
    }

    //在MqttConnect中反射此类的方法名调用
    public void test1(MqttData data) {
        System.out.println(String.valueOf(data) + " test1");
    }

    public void test2(MqttData data) {
        System.out.println(String.valueOf(data) + " test2");
    }


}